package com.tokenplus.thai.base

import androidx.lifecycle.MutableLiveData
import com.tokenplus.thai.anetwork.NetworkException

interface BaseViewModelAction {
    /**显示loading*/
    fun showLoading()

    /**隐藏loading*/
    fun dismissLoading()

    /**处理network exception*/
    fun handleNetworkException(networkException: NetworkException)

    /**获取当前loading live data*/
    fun getLoadingLiveData(): MutableLiveData<Boolean>

    /**获取当前network live data*/
    fun getNetworkExceptionLiveData(): MutableLiveData<NetworkException>
}